import csv
from feature_data.const_data import *


def write_csv_f( file_name, new_csv_row_list, fileHeader):
    csvFile = open( out_dir +file_name.strip() +'.csv', 'wb') #, encoding = 'utf8' , newline=''
    writer = csv.writer(csvFile)
    writer.writerow(fileHeader)
    writer.writerows(new_csv_row_list)
    csvFile.close()

if __name__ == '__main__':
    file_name = 'test'
    new_csv_row_list = [
        ['bo Liu', '0.933579335793', '0.557268722467', '0.697931034483'],
        ['bIN lI', '1.0', '1.0', '1.0']
    ]
    write_csv_f(file_name, new_csv_row_list)